package com.lejin.order.controller;

import com.lejin.item.entity.CourseOutline;
import com.lejin.order.service.impl.CourseOrderConfirmServiceImpl;
import com.lejin.vo.ResultVO;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping("/order")
public class CourseOrderConfirmController {
    @Autowired
    private CourseOrderConfirmServiceImpl courseOrderConfirmService;

    @PostMapping("/confirm")
    public ResultVO confirm(@RequestBody CourseOutline courseOutline){
        ResultVO orderInfo = courseOrderConfirmService.addOrderInfo(courseOutline);
        return orderInfo;

    }
}
